#include <stdio.h>
#define YES 1
#define NO 0
#define YES 1
#define NO 0
main() /* wc command; Kernighan, Ritchie, p. 32 */
{
int c, nl, nw, nc, inword;
inword = NO;
nl = nw = nc = 0;
while ((c = getchar()) != EOF)
{
++nc;
if (c == '\n')
++nl;
if(c='' || c == '\n' || c='\t') /* separators */
inword = NO;
else
if(inword == NO){
inword = YES;
++nw;
}
}
printf("%d %d %d\n",nl,nw,nc);
}